package net.biancheng.controller;

import net.biancheng.bean.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @Author: lb
 * @Date: 2021/8/16 10:40x
 */
@Controller
@RequestMapping("/hello")
public class HelloController {
    @Autowired
    private Person person;

    @RequestMapping("/testHello")
    public String hello(Map<String, Object> map) {
        //通过 map 向前台页面传递数据
        map.put("name", "编程帮（www.biancheng.net）");
        return "hello";
    }
}
